package cn.com.joycode.nimble.examples.controller.pub;

import cn.com.joycode.nimble.core.message.NbMsg;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class IndexController {

    @RequestMapping("/")
    public String home() {
        return "<html><body><center>Spring Boot Examples</center></body></html>";
    }

    @RequestMapping("test")
    public NbMsg test() {
        NbMsg nbMsg = new NbMsg();
        return nbMsg;
    }
}
